import { Entity,PrimaryGeneratedColumn,Column, BaseEntity } from 'typeorm'

@Entity({name:'users'})
export class User extends BaseEntity {
    @PrimaryGeneratedColumn()
    readonly id!: number

    @Column()
    nickname!: string;

    @Column()
    avatar!: string;

    @Column()
    job!: string;

    @Column()
    introduce!: string;
}